package com.lazycat.backend.controller.shop;

import com.alibaba.fastjson.JSONObject;
import com.lazycat.backend.service.impl.shop.FetchAllGoodsServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class FetchAllGoodsController {
    @Autowired
    private FetchAllGoodsServiceImpl fetchAllGoods;

    @GetMapping("shop/fetch/")
    public JSONObject fetch() {
        return fetchAllGoods.fetch();
    }

}
